import request from '@/utils/request'

// 查询舆情上报列表
export function listReport(query) {
  return request({
    url: '/report/report/list',
    method: 'get',
    params: query
  })
}

// 查询舆情上报详细
export function getReport(id) {
  return request({
    url: '/report/report/' + id,
    method: 'get'
  })
}

// 新增舆情上报
export function addReport(data) {
  return request({
    url: '/report/report',
    method: 'post',
    data: data
  })
}

// 修改舆情上报
export function updateReport(data) {
  return request({
    url: '/report/report',
    method: 'put',
    data: data
  })
}

// 删除舆情上报
export function delReport(id) {
  return request({
    url: '/report/report/' + id,
    method: 'delete'
  })
}

// 舆情上报——处理操作
export function dispose(data) {
  return request({
    url: '/report/report/dispose',
    method: 'post',
    data: data
  })
}

// 舆情上报——上报操作
export function appear(data) {
  return request({
    url: '/report/report/appear',
    method: 'post',
    data: data
  })
}
// 舆情上报——撤回操作
export function withdraw(data) {
  return request({
    url: '/report/report/withdraw',
    method: 'post',
    data:data

  })
}


